import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { DissentVO, DissentForm, DissentQuery, tokenForm, orgVO } from '@/api/xydz/dissent/types';

// ******************** office ******************
/**
 * 查询异议信息列表
 * @param query
 * @returns {*}
 */

export const listDissent = (query?: DissentQuery): AxiosPromise<DissentVO[]> => {
  return request({
    url: '/xydz/credit/dissent/getDissentPageByTJ',
    method: 'get',
    params: query
  });
};

//驳回
export const dissentReject = (query) => {
  return request({
    url: '/xydz/credit/dissent/rejectDissentByTJ',
    method: 'post',
    data: query
  });
};

//完成
export const dissentComplete = (query) => {
  return request({
    url: '/xydz/credit/dissent/doneDissentByTJ',
    method: 'post',
    data: query
  });
};
